<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>回收平台导航</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
        :root {
            --primary-gradient: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
            --btn-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            --recycle-gradient: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
            --download-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
            --card-gradient: linear-gradient(145deg, #ffffff, #f8f9ff);
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body { 
            font-family: 'Inter', sans-serif; 
            background: var(--primary-gradient);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            color: #333;
            position: relative;
            overflow-x: hidden;
        }
        .card {
            background: var(--card-gradient);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
            width: 100%;
            max-width: 480px;
            position: relative;
            z-index: 10;
            transform: scale(0.95);
            transition: transform 0.5s ease;
        }
        .card.active {
            transform: scale(1);
        }
        .glow { 
            box-shadow: 0 0 20px rgba(98, 0, 234, 0.4); 
        }
        .pulse { 
            animation: pulse 1.5s infinite; 
        }
        @keyframes pulse { 
            0% { transform: scale(1); } 
            50% { transform: scale(1.03); } 
            100% { transform: scale(1); } 
        }
        .float { 
            animation: float 4s ease-in-out infinite; 
        }
        @keyframes float { 
            0%, 100% { transform: translateY(0); } 
            50% { transform: translateY(-10px); } 
        }
        .badge { 
            animation: badgePulse 2s infinite; 
        }
        @keyframes badgePulse { 
            0%, 100% { opacity: 1; } 
            50% { opacity: 0.7; } 
        }
        .shine {
            position: relative;
            overflow: hidden;
        }
        .shine::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: rgba(255, 255, 255, 0.1);
            transform: rotate(30deg);
            animation: shine 3s infinite;
        }
        @keyframes shine {
            0% { transform: rotate(30deg) translateX(-100%); }
            100% { transform: rotate(30deg) translateX(100%); }
        }
        .grid-benefits {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .benefit-card {
            background: white;
            border-radius: 16px;
            padding: 18px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        .benefit-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .benefit-icon {
            width: 50px;
            height: 50px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            font-size: 22px;
        }
        .login-btn {
            display: block;
            width: 100%;
            background: var(--btn-gradient);
            color: white;
            padding: 20px;
            border-radius: 18px;
            text-align: center;
            font-weight: 700;
            font-size: 18px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 10px 25px rgba(37, 117, 252, 0.4);
            position: relative;
            overflow: hidden;
            border: none;
            cursor: pointer;
            margin: 20px 0;
        }
        .recycle-btn {
            display: block;
            width: 100%;
            background: var(--recycle-gradient);
            color: white;
            padding: 16px;
            border-radius: 18px;
            text-align: center;
            font-weight: 700;
            font-size: 16px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(0, 176, 155, 0.3);
            position: relative;
            overflow: hidden;
            border: none;
            cursor: pointer;
            margin-bottom: 20px;
        }
        .download-btn {
            display: block;
            width: 100%;
            background: var(--download-gradient);
            color: white;
            padding: 16px;
            border-radius: 18px;
            text-align: center;
            font-weight: 700;
            font-size: 16px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(255, 75, 43, 0.3);
            position: relative;
            overflow: hidden;
            border: none;
            cursor: pointer;
            margin: 10px 0;
        }
        .recycle-btn:hover, .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(0, 176, 155, 0.4);
        }
        .login-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(37, 117, 252, 0.5);
        }
        .login-btn:active, .recycle-btn:active, .download-btn:active {
            transform: translateY(1px);
        }
        .login-btn span.subtext, .recycle-btn span.subtext {
            display: block;
            font-size: 14px;
            font-weight: 500;
            margin-top: 8px;
            opacity: 0.9;
        }
        .invite-container {
            background: linear-gradient(135deg, #f0f4ff 0%, #e6eeff 100%);
            border: 2px dashed #6a85ff;
            border-radius: 18px;
            padding: 18px;
            position: relative;
            margin-bottom: 25px;
        }
        .invite-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .invite-badge {
            background: var(--btn-gradient);
            color: white;
            font-size: 12px;
            font-weight: 700;
            padding: 6px 15px;
            border-radius: 20px;
            box-shadow: 0 5px 10px rgba(106, 17, 203, 0.3);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .countdown-badge {
            background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
            color: white;
            font-size: 12px;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 20px;
            box-shadow: 0 5px 10px rgba(255, 75, 43, 0.3);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .copy-btn {
            background: var(--btn-gradient);
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
        }
        .copy-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
        }
        .copy-btn.copied {
            background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
            box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3);
        }
        .decoration {
            position: absolute;
            z-index: 0;
            opacity: 0.7;
        }
        .decoration-1 {
            top: 10%;
            left: 5%;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            animation: float 6s ease-in-out infinite;
        }
        .decoration-2 {
            bottom: 15%;
            right: 5%;
            width: 80px;
            height: 80px;
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
            background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
            animation: float 7s ease-in-out infinite;
        }
        .decoration-3 {
            top: 20%;
            right: 10%;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
            animation: float 5s ease-in-out infinite;
        }
        /* 优化后的欢迎弹窗 */
        .welcome-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
        }
        .welcome-modal.active {
            opacity: 1;
            pointer-events: all;
        }
        .modal-content {
            background: white;
            border-radius: 24px;
            padding: 25px;
            width: 90%;
            max-width: 400px; /* 更适中的宽度 */
            text-align: center;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            transform: translateY(20px);
            transition: transform 0.5s ease;
            position: relative;
            overflow: hidden;
        }
        .welcome-modal.active .modal-content {
            transform: translateY(0);
        }
        .modal-header {
            margin-bottom: 20px;
        }
        .modal-title {
            font-size: 24px; /* 稍小的字体 */
            font-weight: 800;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .modal-subtitle {
            font-size: 16px; /* 稍小的字体 */
            color: #ff416c;
            font-weight: 600;
        }
        .modal-body {
            margin-bottom: 25px;
        }
        .modal-text {
            font-size: 15px; /* 稍小的字体 */
            color: #555;
            line-height: 1.6;
            margin-bottom: 15px;
        }
        .highlight {
            background: linear-gradient(120deg, rgba(255,230,0,0.3), rgba(255,230,0,0.3));
            padding: 2px 8px;
            border-radius: 6px;
            font-weight: 600;
        }
        .modal-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px; /* 更小的间距 */
        }
        .modal-btn {
            padding: 16px; /* 更小的内边距 */
            border-radius: 16px;
            font-weight: 700;
            font-size: 16px; /* 稍小的字体 */
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .download-app-btn {
            background: var(--download-gradient);
            color: white;
            box-shadow: 0 8px 25px rgba(255, 75, 43, 0.4);
        }
        .continue-btn {
            background: transparent;
            color: #555;
            border: 2px solid #ddd;
        }
        .modal-btn:hover {
            transform: translateY(-3px);
        }
        .modal-btn:active {
            transform: translateY(1px);
        }
        .close-btn {
            position: absolute;
            top: 15px; /* 更小的间距 */
            right: 15px; /* 更小的间距 */
            width: 36px; /* 更小的尺寸 */
            height: 36px; /* 更小的尺寸 */
            border-radius: 50%;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 18px; /* 稍小的字体 */
            color: #777;
        }
        .close-btn:hover {
            background: #ff416c;
            color: white;
            transform: rotate(90deg);
        }
        .app-icon {
            width: 36px; /* 更小的尺寸 */
            height: 36px; /* 更小的尺寸 */
            background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px; /* 稍小的字体 */
        }
        .app-features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin: 20px 0;
            padding: 10px;
            background: #f9f9ff;
            border-radius: 16px;
            gap: 10px; /* 更小的间距 */
        }
        .feature {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px; /* 更小的间距 */
            min-width: 80px;
        }
        .feature-icon {
            width: 36px; /* 更小的尺寸 */
            height: 36px; /* 更小的尺寸 */
            border-radius: 50%;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        .feature-text {
            font-size: 11px; /* 稍小的字体 */
            color: #666;
            text-align: center;
        }
        /* 下载提示弹窗 */
        .download-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
        }
        .download-modal.active {
            opacity: 1;
            pointer-events: all;
        }
        .download-content {
            background: white;
            border-radius: 24px;
            padding: 30px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            transform: translateY(20px);
            transition: transform 0.5s ease;
            position: relative;
        }
        .download-modal.active .download-content {
            transform: translateY(0);
        }
        .download-header {
            margin-bottom: 20px;
        }
        .download-title {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .download-icon {
            font-size: 60px;
            color: #4CAF50;
            margin: 20px 0;
        }
        .download-text {
            font-size: 16px;
            color: #555;
            line-height: 1.6;
            margin-bottom: 10px;
        }
        .countdown-text {
            font-size: 18px;
            font-weight: 700;
            color: #ff416c;
            margin: 20px 0;
        }
        
        /* 新增悬浮窗样式 */
        .floating-buttons {
            position: fixed;
            right: 20px;
            bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 100;
        }
        .floating-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 22px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
            animation: float 4s ease-in-out infinite;
            position: relative;
            overflow: hidden;
        }
        .floating-btn:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
        }
        .floating-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .floating-btn:hover::after {
            opacity: 1;
        }
        .floating-btn.personal {
            background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
        }
        .floating-btn.ads {
            background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
            animation-delay: 0.5s;
        }
        .floating-label {
            position: absolute;
            top: 50%;
            right: 70px;
            transform: translateY(-50%);
            background: white;
            padding: 8px 15px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
        }
        .floating-btn:hover .floating-label {
            opacity: 1;
            right: 75px;
        }
    </style>
</head>
<body>
    <!-- 欢迎弹窗 -->
    <div id="welcome-modal" class="welcome-modal active">
        <div class="modal-content">
            <div class="close-btn" id="close-modal">
                <i class="fa fa-times"></i>
            </div>
            
            <div class="modal-header">
                <h2 class="modal-title">欢迎使用扫码回收系统</h2>
                <p class="modal-subtitle">扫码回收 · 轻松赚钱 · 绿色环保</p>
            </div>
            
            <div class="modal-body">
                <p class="modal-text">为防止网页丢失，请<span class="highlight">下载安卓版软件</span>长期稳定使用</p>
                
                <div class="app-features">
                    <div class="feature">
                        <div class="feature-icon">
                            <i class="fa fa-shield"></i>
                        </div>
                        <div class="feature-text">安全稳定</div>
                    </div>
                    <div class="feature">
                        <div class="feature-icon">
                            <i class="fa fa-bolt"></i>
                        </div>
                        <div class="feature-text">极速扫码</div>
                    </div>
                    <div class="feature">
                        <div class="feature-icon">
                            <i class="fa fa-money"></i>
                        </div>
                        <div class="feature-text">收益更高</div>
                    </div>
                    <div class="feature">
                        <div class="feature-icon">
                            <i class="fa fa-history"></i>
                        </div>
                        <div class="feature-text">永久使用</div>
                    </div>
                </div>
                
                <p class="modal-text">网页版仅适合临时使用，长期使用请下载安卓APP</p>
            </div>
            
            <div class="modal-buttons">
                <button id="download-btn" class="modal-btn download-app-btn">
                    <div class="app-icon">
                        <i class="fa fa-android"></i>
                    </div>
                    <span>点我下载安卓版</span>
                </button>
                
                <button id="continue-btn" class="modal-btn continue-btn">
                    <i class="fa fa-globe"></i>
                    <span>继续使用网页版</span>
                </button>
            </div>
        </div>
    </div>
    
    <!-- 下载提示弹窗 -->
    <div id="download-modal" class="download-modal">
        <div class="download-content">
            <div class="close-btn" id="close-download-modal">
                <i class="fa fa-times"></i>
            </div>
            
            <div class="download-header">
                <h2 class="download-title">复制成功</h2>
                <p class="modal-subtitle">邀请码已复制到剪贴板</p>
            </div>
            
            <div class="download-icon">
                <i class="fa fa-check-circle"></i>
            </div>
            
            <div class="modal-body">
                <p class="download-text">下载APP后填写邀请码即可领取7天VIP特权</p>
                <p class="download-text">请确保粘贴此邀请码以激活VIP</p>
                <p class="countdown-text" id="countdown-display">5秒后进入下载页</p>
            </div>
        </div>
    </div>
    
    <!-- 背景装饰元素 -->
    <div class="decoration decoration-1"></div>
    <div class="decoration decoration-2"></div>
    <div class="decoration decoration-3"></div>
    
    <!-- 主卡片 -->
    <div class="card">
        <!-- 顶部装饰 -->
        <div class="absolute top-0 left-0 w-full h-3 bg-gradient-to-r from-blue-500 to-purple-600"></div>
        
        <!-- 浮动图标 -->
        <div class="absolute -top-10 left-1/2 transform -translate-x-1/2 bg-gradient-to-r from-blue-500 to-purple-600 text-white p-5 rounded-full glow float">
            <i class="fa fa-crown text-2xl"></i>
        </div>
        
        <!-- 内容区 -->
        <div class="p-7 pt-16 relative z-10">
            <!-- 标题区 -->
            <div class="text-center mb-6">
                <h1 class="text-2xl font-bold text-gray-800 mb-3">限时领<span class="text-transparent bg-clip-text bg-gradient-to-r from-blue-500 to-purple-600">7天VIP</span>特权</h1>
                <div class="flex items-center justify-center gap-2 mb-4">
                    <span class="h-px bg-gradient-to-r from-transparent via-blue-500 to-transparent flex-grow max-w-[60px]"></span>
                    <p class="text-blue-600 font-medium text-sm flex items-center">
                        <i class="fa fa-star text-yellow-400 mr-1"></i>
                        <span>尊享四大核心特权</span>
                        <i class="fa fa-star text-yellow-400 ml-1"></i>
                    </p>
                    <span class="h-px bg-gradient-to-r from-transparent via-blue-500 to-transparent flex-grow max-w-[60px]"></span>
                </div>
                <p class="text-gray-600 text-sm">填写邀请码立即激活VIP特权</p>
            </div>
            
            <!-- 邀请码卡片 -->
            <div class="invite-container shine">
                <div class="invite-header">
                    <div class="invite-badge">
                        <i class="fa fa-gift"></i>
                        <span>限时福利</span>
                    </div>
                    <div class="countdown-badge">
                        <i class="fa fa-clock-o"></i>
                        <span id="countdown-text">03:00</span>
                    </div>
                </div>
                <div class="flex flex-col items-center">
                    <p class="text-gray-500 text-sm mb-4">专属邀请码</p>
                    <div class="flex items-center gap-4 mb-4">
                        <span id="invite-code" class="text-3xl font-bold text-gray-800 tracking-widest font-mono">75627</span>
                        <button id="copy-btn" class="copy-btn">
                            <i class="fa fa-copy mr-1"></i>复制
                        </button>
                    </div>
                    <p class="text-xs text-blue-500 bg-blue-50 px-4 py-2 rounded-full inline-block">
                        <i class="fa fa-bolt text-orange-400 mr-1"></i>填写后自动激活7天VIP
                    </p>
                </div>
            </div>
            
            <!-- 登录按钮（修改：添加target="_blank"） -->
            <a href="https://h5.chznhs.cn/#/pages/member/login?inviteCode=75627" id="login-btn" class="login-btn pulse" target="_blank">
                立即登录领取VIP特权
                <span class="subtext">点击粘贴邀请码并激活</span>
            </a>
            
            <!-- 回收教学按钮 -->
            <a href="http://yanhesaoma.ysepan.com/" target="_blank" class="recycle-btn">
                <i class="fa fa-recycle mr-2"></i>回收教学
                <span class="subtext">点击查看详细教程</span>
            </a>
            
            <!-- 权益展示 - 田字型布局 -->
            <div class="mb-5">
                <div class="flex items-center justify-center mb-5">
                    <div class="h-px bg-gradient-to-r from-transparent via-blue-400 to-transparent flex-grow"></div>
                    <h3 class="text-gray-700 font-bold mx-4 text-base">VIP核心权益</h3>
                    <div class="h-px bg-gradient-to-r from-transparent via-blue-400 to-transparent flex-grow"></div>
                </div>
                
                <!-- 田字型布局 -->
                <div class="grid-benefits">
                    <!-- 特权1 -->
                    <div class="benefit-card">
                        <div class="benefit-icon" style="background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white;">
                            <i class="fa fa-percent"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-gray-800 text-base mb-2">更低交易手续费</h4>
                            <p class="text-xs text-gray-600">享受专属优惠费率，节省每笔交易成本</p>
                        </div>
                    </div>
                    
                    <!-- 特权2 -->
                    <div class="benefit-card">
                        <div class="benefit-icon" style="background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); color: white;">
                            <i class="fa fa-line-chart"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-gray-800 text-base mb-2">更高推广佣金</h4>
                            <p class="text-xs text-gray-600">公司所有项目推广收益提升，收入倍增</p>
                        </div>
                    </div>
                    
                    <!-- 特权3 -->
                    <div class="benefit-card">
                        <div class="benefit-icon" style="background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); color: #8a2387;">
                            <i class="fa fa-cloud-upload"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-gray-800 text-base mb-2">外部码管理</h4>
                            <p class="text-xs text-gray-600">支持导入外部码存储及售卖（含VIP、代理合伙人）</p>
                        </div>
                    </div>
                    
                    <!-- 特权4 -->
                    <div class="benefit-card">
                        <div class="benefit-icon" style="background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); color: #3a1c71;">
                            <i class="fa fa-desktop"></i>
                        </div>
                        <div>
                            <h4 class="font-bold text-gray-800 text-base mb-2">独立电脑后台</h4>
                            <p class="text-xs text-gray-600">专属管理后台，功能更强大，操作更便捷</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 复制成功弹窗 -->
    <div id="success-modal" class="welcome-modal">
        <div class="modal-content">
            <div class="close-btn" id="close-success-modal">
                <i class="fa fa-times"></i>
            </div>
            
            <div class="modal-header">
                <h2 class="modal-title">复制成功</h2>
                <p class="modal-subtitle">邀请码已复制到剪贴板</p>
            </div>
            
            <div class="modal-body">
                <div style="font-size: 60px; color: #4CAF50; margin: 15px 0;">
                    <i class="fa fa-check-circle"></i>
                </div>
                <p class="modal-text">您可以前往登录页面粘贴使用该邀请码</p>
                <p class="modal-text">立即激活您的VIP特权</p>
            </div>
            
            <div class="modal-buttons">
                <a href="https://h5.chznhs.cn/#/pages/member/login?inviteCode=75627" target="_blank" class="modal-btn download-app-btn" style="text-decoration: none;">
                    <i class="fa fa-sign-in"></i>
                    <span>立即登录领取VIP</span>
                </a>
            </div>
        </div>
    </div>
    
    <!-- 新增悬浮按钮 -->
    <div class="floating-buttons">
        <a href="https://h5.chznhs.cn/" target="_blank" class="floating-btn personal">
            <i class="fa fa-user"></i>
            <span class="floating-label">个人中心</span>
        </a>
        <a href="https://www.chuhe168.com/video_download.html" target="_blank" class="floating-btn ads">
            <i class="fa fa-youtube-play"></i>
            <span class="floating-label">楚视汇看广告赚钱</span>
        </a>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const inviteCode = '75627';
            const inviteCodeEl = document.getElementById('invite-code');
            const copyBtn = document.getElementById('copy-btn');
            const loginBtn = document.getElementById('login-btn');
            const welcomeModal = document.getElementById('welcome-modal');
            const closeModalBtn = document.getElementById('close-modal');
            const downloadBtn = document.getElementById('download-btn');
            const continueBtn = document.getElementById('continue-btn');
            const successModal = document.getElementById('success-modal');
            const closeSuccessModalBtn = document.getElementById('close-success-modal');
            const goLoginBtn = document.getElementById('go-login-btn');
            const countdownText = document.getElementById('countdown-text');
            const card = document.querySelector('.card');
            const downloadModal = document.getElementById('download-modal');
            const closeDownloadModalBtn = document.getElementById('close-download-modal');
            const countdownDisplay = document.getElementById('countdown-display');
            
            // 页面加载后显示主卡片
            setTimeout(() => {
                card.classList.add('active');
            }, 300);
            
            // 设置邀请码显示
            inviteCodeEl.textContent = inviteCode;
            
            // 复制按钮事件
            copyBtn.addEventListener('click', function() {
                copyToClipboard(inviteCode);
                successModal.classList.add('active');
                
                // 按钮反馈
                copyBtn.innerHTML = '<i class="fa fa-check mr-1"></i>已复制';
                copyBtn.classList.add('copied');
                
                // 3秒后恢复按钮状态
                setTimeout(() => {
                    copyBtn.innerHTML = '<i class="fa fa-copy mr-1"></i>复制';
                    copyBtn.classList.remove('copied');
                }, 3000);
            });
            
            // 复制到剪贴板函数
            function copyToClipboard(text) {
                const tempTextArea = document.createElement('textarea');
                tempTextArea.value = text;
                document.body.appendChild(tempTextArea);
                tempTextArea.select();
                document.execCommand('copy');
                document.body.removeChild(tempTextArea);
            }
            
            // 关闭成功弹窗
            closeSuccessModalBtn.addEventListener('click', function() {
                successModal.classList.remove('active');
            });
            
            // 关闭欢迎弹窗
            closeModalBtn.addEventListener('click', function() {
                welcomeModal.classList.remove('active');
            });
            
            // 下载安卓版按钮
            downloadBtn.addEventListener('click', function() {
                // 先复制邀请码
                copyToClipboard(inviteCode);
                
                // 显示下载提示弹窗
                downloadModal.classList.add('active');
                
                // 开始倒计时
                let seconds = 5;
                countdownDisplay.textContent = `${seconds}秒后进入下载页`;
                
                const countdownInterval = setInterval(() => {
                    seconds--;
                    countdownDisplay.textContent = `${seconds}秒后进入下载页`;
                    
                    if (seconds <= 0) {
                        clearInterval(countdownInterval);
                        // 创建隐藏的下载链接并触发点击
                        const downloadLink = document.createElement('a');
                        downloadLink.href = 'https://pan.baidu.com/s/11nl-hyXQ9gOtjU6MLZHA-w?pwd=8zqt';
                        downloadLink.target = '_blank';
                        downloadLink.style.display = 'none';
                        document.body.appendChild(downloadLink);
                        downloadLink.click();
                        document.body.removeChild(downloadLink);
                        
                        downloadModal.classList.remove('active');
                    }
                }, 1000);
            });
            
            // 关闭下载提示弹窗
            closeDownloadModalBtn.addEventListener('click', function() {
                downloadModal.classList.remove('active');
            });
            
            // 继续使用网页版按钮
            continueBtn.addEventListener('click', function() {
                welcomeModal.classList.remove('active');
            });
            
            // 登录按钮点击效果
            loginBtn.addEventListener('click', function(e) {
                // 实际跳转由href属性处理
            });
            
            // 倒计时功能
            let countdown = 3 * 60; // 3分钟
            
            function updateTimer() {
                const minutes = Math.floor(countdown / 60);
                const seconds = countdown % 60;
                countdownText.textContent = `${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
                
                if (countdown <= 0) {
                    clearInterval(timerInterval);
                    countdownText.textContent = "00:00";
                    countdownText.parentElement.classList.add('animate-pulse');
                } else {
                    countdown--;
                }
            }
            
            // 启动倒计时
            updateTimer();
            const timerInterval = setInterval(updateTimer, 1000);
        });
    </script>
</body>
</html>
